//
//  Generator.swift
//  CommandLineTool1
//
//  Created by May on 2025/3/26.
//

import Foundation

class Generator {
    static func createRandomArr(length: Int, min: Int = 0, max: Int = 100) -> [Int] {
        var target:[Int] = []
        for _ in 0..<length {
            target.append(Int.random(in: min..<max))
        }
        return target
    }
    
    func test() {
//        arc4random() // int32
//        arc4random_uniform(100)
        Double.random(in: 0..<1)
        Float.random(in: 0..<1)
    }
}
